%{
#include<iostream>
#include<cstdio>
#include<set>
using namespace std;    
int before=0;
int after=0;
set<long long>a;
%}  
ne NAME$
number [0-9]
nu {number}{9}
nf ^{nu}
numbers {number}+
digit {numbers}(\.{numbers})?
%%  
{ne} {printf("XSY");}
{nf} {printf("201492432");}
{digit} {long long s=0;char *p=yytext;int i=0;if(*p!=' '){while(i<yyleng){s=10*s+(*p-'0');p++;i++;}}if(i!=yyleng){p++;int x=(*p-'0');if(x>=5)s++;}s*=2;s+=201492432;cout<<s;before++;a.insert(s);}
. {cout<<yytext;}
    
%%  
int main()  
{  
    yylex();  
    after=a.size();
    printf("%d\t %d\n",before,after);
    return 0;    
}  
int yywrap()  
{  
    return 1;  
}
